# -*- coding: utf-8 -*-
# @FileName :what_is_template.py
# @Time :2024-01-29 13:54
# author: 小燕子
"""
"".replace()
"""

from string import Template

a = "select * from user where ${id}"
data = Template(a).substitute({"id":"23","pwd":"qedfgh"})
print(data)